<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>学生信息</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/me.css" th:href="@{/css/me.css}">
</head>
<body>
<!--导航-->
<nav class="ui inverted attached segement m-padded-tb-mini">
    <!--    <div class="ui  container ">-->
    <div class="ui inverted menu">
        <h2 class=" ui teal header item">管理员端</h2>
        <a href="/admin/StudentInfo" class="item"><i class="tag icon"></i>学生信息</a>
        <a href="/admin/score" class="item"><i class="tag icon"></i>成绩管理</a>
        <a href="/admin/logout" class="item"><i class="power off icon"></i>退出登陆</a>

    </div>

</nav>
<!--中间-->
<div>
<!--    <h2>成绩管理：</h2>-->
    <h2 th:text="'课程名：'+${course1.courseName}"></h2>
<!--    <td><a th:href="@{'/admin/StudentInfo/ShowInfo'+${student.number}}">查看学生信息详情</a></td>-->

    <a th:href="@{'/admin/toAddScore'+${course1.id}}">添加成绩</a>
    <a href="/admin/score"> 返回</a>
    <table class="ui celled table">
        <thead>
        <tr>

            <th>课程名</th>
            <th>学年</th>
            <th>任课老师</th>
            <th>学号</th>
            <th>成绩</th>
            <th>成绩类型</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
        <span th:each="score : ${scores}">
        <tr th:each="course:${score.getCourse}">
            <td th:text="${course.courseName}">课程名</td>
            <td th:text="${course.term}">学年</td>
            <td th:text="${course.teacher}">任课老师</td>
            <td th:text="${score.number}">学号</td>
            <td th:text="${score.score}">分数</td>
            <td th:text="${score.type}">成绩类型</td>
            <td ><a th:href="@{'/admin/toChange'+${score.id}}">修改</a></td>
            <td><a onclick="return confirm('确定删除该学生成绩？')" th:href="'/admin/deleteScore'+${score.id}" >删除</a></td>
<!--            <td><a onclick="return confirm('确定删除该学生成绩？')" th:href="@{'/admin/toDelete'+${score.id}}" >删除</a></td>-->
<!--            <td><a th:href="@{'/admin/toDelete'+${score.id}}">删除</a></td>-->
        </tr>
        </span>
        </tbody>
        <tfoot>
        <tr>
            <th colspan="8">
                <div class="ui right floated pagination menu">
<!--                    <a class="icon item"><i class="left chevron icon"></i></a>-->
<!--                    <a class="item">1</a>-->
<!--                    <a class="item">2</a>-->
<!--                    <a class="icon item"><i class="right chevron icon"></i></a>-->
                </div>
            </th>
        </tr>
        </tfoot>
    </table>

    <br>
    <br>
    <br>
    <br>
</div>


<!--底部-->
<footer class="ui inverted vertical segment m-padded-tb-masstive">
    <div class="ui center aligned container">
        <div class="ui inverted divided grid">
            <div class="three wide column">
                <img src="../../static/images/p1.jpeg" th:src="@{/images/p1.jpeg}" class="ui rounded image " >
            </div>
            <div class="six wide column">
                <h4 class="ui inverted header m-opacity-mini">联系我们</h4>
                <div class="ui inverted link list">
                    <h4></h4>
                    <h4 class="m-opacity-mini">Email:coke3_workmail@163.com</h4>
                    <h4 class="m-opacity-mini">Phone:13697712513</h4>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-opacity-mini">About</h4>

                <p class="m-text-lined m-opacity-mini m-text-spaced m-text-thin">
                    这是一个学生学籍管理系统，项目已开源 </p>
                <p class="m-text-lined m-opacity-mini m-text-spaced m-text-thin">
                    码云地址：https://gitee.com/Coke3/student,
                <p class="m-text-lined m-opacity-mini m-text-spaced m-text-thin">
                    SSH: git@gitee.com:Coke3/student.git</p>
                </p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-lined m-opacity-mini m-text-spaced m-text-thin"> 吉林大学珠海学院 计算机科学与技术 </p>
    </div>

</footer>


</body>
</html>